textiter: fix bug in find_by_log_attrs()
authorSébastien Wilmet <swilmet@gnome.org>
Sun, 13 Jul 2014 20:20:25 +0000 (22:20 +0200)
committerSébastien Wilmet <swilmet@gnome.org>
Thu, 17 Jul 2014 10:56:56 +0000 (12:56 +0200)
commit5d666344820bc23330f128109c011848ec744736
treefb7aec706745daaddd6450cf621c9f7f4031f862
parent79c835a151a054c3d12782a15951159fc860c465
textiter: fix bug in find_by_log_attrs()

Do not work with the iter passed as the function argument. Work with
another iter, and set it back to the function argument only if something
has been found.

This fixes a few unit tests. But there are regressions for a few others.

https://bugzilla.gnome.org/show_bug.cgi?id=618852
gtk/gtktextiter.c
testsuite/gtk/textiter.c